define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {

		//返回信息
		return {
			//获取页面数据
			get_store: function(param, callback, error, done) {
				param = param || {}
				param.method = 'member.memberdata.get_store';
				//post请求
				Http.post(param, callback, error, done);
			},

			//保存
			save_store: function(param, callback, error, done) {
				param = param || {}
				param.method = 'member.memberdata.save_store';
				Http.post(param, callback, error, done);
			},

			//分仓转代理商
			upgrade_warehouse: function(param, callback, error, done) {
				param = param || {}
				param.method = 'member.memberdata.upgrade_warehouse';
				//post请求
				Http.post(param, callback, error, done);
			},
		};
	}

	factory.$inject = ['Http'];
	return app.registerService("Store_data", factory);
});